{%ErrorHandler->getLastError assing='error'%}

<div class="error_box">
   <div>
   <span class="fl-left">{%$TR->error->title%}:</span>
   <a class="fl-right" onclick="$('.error_box').remove();return false;"><img src="/tpa/img/16/close.gif" alt="{%$TR->meccano->close%}" /></a>
   </div>
   <div class="clear"></div>
   <div style="padding:10px 20px;">{%$TR->getTranslate a="error" b="$error.varkey"%}</div>
</div>
{%if $error.exec != false && $error.data != false%}
{%json exec='encode' data=$error.data assign='errorvars'%}
<script type="text/javascript">
   $(document).ready(function(){{%$error.exec%}({%$errorvars%});});
</script>
{%/if%}